import { Component, PropsWithChildren } from 'react'
import { View, Text, Button, Input, Checkbox } from '@tarojs/components'
import { AtIcon } from "taro-ui"
import { AtTextarea } from 'taro-ui'
import './index.scss'
import Taro from '@tarojs/taro'

export default class Index extends Component<PropsWithChildren> {
  state: any
  constructor(props) {
    super(props)
    this.state = {
      value: ''
    }
  }
  componentWillMount() { }

  componentDidMount() { }

  componentWillUnmount() { }

  componentDidShow() { }

  componentDidHide() { }
  onClick() {
    Taro.navigateBack()
  }
  handleChange() {

  }
  render() {
    return (
      <View className='index'>
        <View className='nav-bar-box'>
          <View className='status-bar'></View>
          <View className='title-bar'>
            <AtIcon onClick={this.onClick.bind(this)} className='icon' value='chevron-left' size='24' color='#fff'></AtIcon>
            <Text className='tit'>问题反馈</Text>
          </View>
        </View>
        <View className='message'>
          <View className='tit'>联系方式</View>
          <View>
            <Input placeholder='请输入手机号' />
          </View>
          <View className='content'>
            <View className='tit'>反馈内容</View>
            <AtTextarea className='text'
              value={this.state.value}
              onChange={this.handleChange.bind(this)}
              maxLength={200}
              placeholder='请输入'
            />
          </View>
          <Button className='Btn'>提交反馈</Button>
        </View>

      </View >
    )
  }
}
